<template xmlns:v-slot="http://www.w3.org/1999/XSL/Transform">
  <div>
    <div style="margin-left: 10px;margin-right: 10px">
      <zh-table
                ref="submitTable"
                :columns="tableColumn"
                type="default"
                :disabled="false" :data="submitData.baseAuditVOList">
      </zh-table>
    </div>
  </div>
</template>

<script>
import { getBatchDict} from "@/services/system/api"

export default {
  props: ["formData"],
  name: "BatchAuditRe",
  components: {},
  data() {
    return {
      allowClear: true,
      editFlag: false,
      dictData: [],
      submitData: {
          baseAuditVOList:[]
      },
      tableColumn:[
          { type: 'seq', width: 60, fixed: 'left', align: 'center', title: '序号' },
          { field: 'operationType', title: '业务类型', visible: false, align: 'center', minWidth: 100 },
          { field: 'operationName', title: '业务类型', visible: true, align: 'center', minWidth: 100 },
          { field: 'authTime', title: '审核时间', visible: true, align: 'center', minWidth: 100 },
          { field: 'busNo', title: '业务流水号', visible: true, align: 'center', minWidth: 100 },
          { field: 'authStatus', title: '审核状态', visible: true, editRender:{name: 'ASelect',options:[],optionProps:{value:'dictKey',label:'dictValue'}},align: 'center', minWidth: 80 },
          { field: 'authRemarks', title: '审核意见', visible: true, align: 'center', minWidth: 100 },
      ],
      //业务环节字典
      actDict:[],
    }
  },
  created() {
    //初始化字典
    this.initDict();
    this.init();
  },
  methods: {
    init() {
      this.submitData = this._props.formData[0];
    },
    //初始化字典
    initDict(){
        const params = {}
        params.dictFields = 'authStatus'
        this.$http.post(getBatchDict,params).then(res => {
            this.dictData = res.result;
            this.tableColumn[5].editRender.options = this.dictData.authStatus;
        });
    },
  }
}
</script>